﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HuaProject.Web.Admin
{
    public partial class ProductList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GridBind();
            }
        }
        public void GridBind()
        {
            GridView1.DataSource = new DAL.Tool().GetPageData("Product", "id", "UpdateDate desc", "1=1", AspNetPager1).Tables[0];
            GridView1.DataBind();
        }

        protected void AspNetPager1_PageChanged(object sender, EventArgs e)
        {
            GridBind();
        }
    }
}